﻿/**
 * 
 * By Philip
 * 
 * V0.1: leben und funktion zum zerstören des GameObjekts
 *
 **/

using UnityEngine;
using System.Collections;

public class ZombieHealth : MonoBehaviour {

	public int health = 100;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if(health <= 0)
		{
			GameObject.Destroy(this.gameObject); //destroys the Parent GameObject the script is applied to
		}
	}
}
